#!/bin/bash - 
#===============================================================================
#
#          FILE:  ex10-1.sh
# 
#         USAGE:  ./ex10-1.sh 
# 
#   DESCRIPTION:  Inserting a blank between paragraphs in a text file
# 
#       OPTIONS:  ---
#  REQUIREMENTS:  ---
#          BUGS:  ---
#         NOTES:  ---
#        AUTHOR: bucunzai (), freecityer@gmail.com
#       COMPANY: FreeCity
#       CREATED: 2011年02月09日 13时53分30秒 CST
#      REVISION:  ---
#===============================================================================

# Usage: $0 < FILENAME
set -o nounset                              # Treat unset variables as an error

MINLEN=50   # May need change this value.
while read line
do
    echo "$line"

    len=${#line}
    if [[ "$len" -lt "$MINLEN" && "$line" =~ \[*\.\] ]]
    then echo
    fi
done

exit 0
